home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Avalon 2
/
Avalon_02_1995-06_Avalon_Side_B.d64
/
banner printer
(
.txt
)
< prev
next >
Wrap
Commodore BASIC
|
2023-02-26
|
671b
|
38 lines
0 rem **banner printer **
1 rem **64 programmer iss.1 **
10 open4,4
20 h=6:rem hight/8
30 w=2:rem width/8
40 qq$="a message, 80 chars max"
50 forj=1tolen(qq$)
60 c=asc(mid$(qq$,j,1))
70 gosub90:nextj
80 print#4:close4:end
85 :
90 rem ** print character **
100 gosub210
110 t=128
120 a$=" ":forv=7to0step-1
130 rem print x(v)and t;t
140 if(x(v)andt)<>tthengoto160
150 forp=1toh:a$=a$+"*":nextp:goto170
160 forp=1toh:a$=a$+" ":nextp
170 nextv
180 fore=1tow:print#4,a$:nexte
190 t=t/2:ift<1thenreturn
200 goto120
205 :
210 rem**find char in rom**
220 ifc>31andc<64thenm=c
230 ifc>63andc<96thenm=c-64
240 ifc>95andc<128thenm=c-32
250 ifc>159andc<192thenm=c-64
260 poke56334,peek(56334)and254
270 poke1,peek(1)and251
280 forr=0to7
290 x(r)=peek(53248+(m*8)+r)
300 nextr
310 poke1,peek(1)or4
320 poke56334,peek(56334)or1
330 return